<template>
<app-container>
    <app-block is-search>
      <el-form inline :model="form" ref="searchForm" size="small">
        <el-form-item label="券类型:">
          <el-select class="w150" v-model="form.bb" clearable placeholder="请选择有效期方式">
            <el-option
              :label="type.label"
              :value="type.value"
              v-for="(type,index) in typeList"
              :key="index"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="券种类:">
          <el-select class="w150" v-model="form.bb" clearable placeholder="请选择有效期方式">
            <el-option
              :label="type.label"
              :value="type.value"
              v-for="(type,index) in typeList"
              :key="index"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item prop="point" label="券名称:">
          <el-input v-model="form.point" class="w150" placeholder="请输入关键字" />
        </el-form-item>
        <el-form-item label="分发渠道:">
          <el-select class="w150" v-model="form.bb" clearable placeholder="请选择渠道">
            <el-option
              :label="type.label"
              :value="type.value"
              v-for="(type,index) in typeList"
              :key="index"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSearch">搜索</el-button>
          <el-button type="default" @click="onReset">重置</el-button>
        </el-form-item>
      </el-form>
    </app-block>
    <app-block>
      <zm-table
            :columns="columns"
            :fetch="loadList"
            :table-params="tableParams"
          >
          </zm-table>
    </app-block>
  </app-container>
</template>

<script>
import tableMixin from '@/mixins/zmTableMixin'
import { columns } from '@/model/demoConst'
export default {
  components: {},
  mixins: [tableMixin],
  data () {
    return {
      columns: columns(this),
      form: {
        bb: ''
      },
      typeList: [
        {
          label: '全部',
          value: '111'
        }
      ]
    }
  },
  computed: {},
  watch: {},
  created () {},
  methods: {
    loadList () {
    }
  }
}
</script>
